home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5209 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  901 b 

  1. Path: inforamp.net!ts39-09
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie C question
  5. Date: Thu, 08 Feb 96 18:20:38 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4fdejm$flj@sam.inforamp.net>
  8. References: <4epuhv$5vu@silver.scs.unr.edu>
  9. NNTP-Posting-Host: ts39-09.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4epuhv$5vu@silver.scs.unr.edu>,
  13.    robertj@scs.unr.edu (Robert D. Jones) wrote:
  14. >I've got Borland C++ 4.52 and am trying to write a DLL. I want to be able 
  15. >to pass 2 strings and 1 integer to the DLL and have it return an array. The 
  16. >number of elements in the array is to be determined by the value of the 
  17. >integer. Each element is to be an integer.
  18. >
  19.  
  20. int * GetArrayFromStringInterger(char *, char *, int i)
  21. {
  22.     ...
  23.     int * ai = new integer[i];
  24.     ...
  25.     return ai;
  26. };
  27.  
  28. I hope I'm not being too simplistic.
  29.  
  30. Agrivar
  31.